package com.study.blog.common.result;

public enum ReturnCode {
    REQUEST_SUCCESS(200, "请求成功"),
    REQUEST_FAIL(500, "请求失败");


    private final int code;

    private final String message;

    ReturnCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
